KERNEL_DIR = /lib/modules/$(shell uname -r)/build
PROJECT_DIR = $(shell pwd)

# OBJ_FILES = device.o queue.o test_kernel.o
OBJ_FILES = device_alias.o test_kernel.o

obj-m := disk_dev.o
disk_dev-objs := $(OBJ_FILES)

all:
	@echo $(OBJ_FILES)
	$(MAKE) -C $(KERNEL_DIR) M=$(PROJECT_DIR) modules

clean:
	$(MAKE) -C $(KERNEL_DIR) M=$(PROJECT_DIR) clean
	rm -rf /var/crash/*
